﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Windows.Forms;
using CrystalDecisions.Shared;
using QLTVNEW.Report;
namespace QLTVNEW
{
    public partial class frmInPhieuMuon : DevComponents.DotNetBar.Office2007Form
    {
        public frmInPhieuMuon()
        {
            InitializeComponent();
        }

        public string tenDG { get; set; }
        public string maDG { get; set; }
        public string tenSach { get; set; }
        public string theLoai { get; set; }
        public string maSach { get; set; }
        public string ngayMuon{get;set;}
        public string ngayTra { get; set; }

        private void frmInPhieuMuon_Load(object sender, EventArgs e)
        {
            rptInPhieuMuon rpt = new rptInPhieuMuon();
            rpt.SetParameterValue("txtTen", tenDG.ToString());
            rpt.SetParameterValue("txtMaThe", maDG.ToString());
            rpt.SetParameterValue("txtTenSach", tenSach.ToString());
            rpt.SetParameterValue("txtTheLoai", theLoai.ToString());
            rpt.SetParameterValue("txtMaSach",maSach.ToString());
            rpt.SetParameterValue("txtNgayMuon", ngayMuon.ToString());
            rpt.SetParameterValue("txtNgayTra", ngayTra.ToString());
            crystalReportViewer1.ReportSource = rpt;
        }
    }
}
